package com.otp.service.instance.impl;

import java.util.List;

import org.appfuse.service.impl.GenericManagerImpl;
import org.springframework.beans.factory.annotation.Autowired;

import com.otp.model.test.template.ResponseScoreOption;
import com.otp.model.test.template.dao.ResponseScoreOptionDao;
import com.otp.service.instance.ResponseScoreOptionManager;

public class ResponseScoreOptionManagerImpl extends GenericManagerImpl<ResponseScoreOption,Long> implements ResponseScoreOptionManager  {
	private ResponseScoreOptionDao responseScoreOptionDao;
	
	@Autowired
	public void setResponseScoreOptionDao(ResponseScoreOptionDao responseScoreOptionDao){
		this.dao = responseScoreOptionDao;
        this.responseScoreOptionDao = responseScoreOptionDao;
	}
	
	public List<ResponseScoreOption> getResponseOptionByRangeId(String rangeId){
		List<ResponseScoreOption> options = null;
		try {
			options = responseScoreOptionDao.getResponseOptionByRangeId(rangeId);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return options;
	}

}
